<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*,
                 com.kylin.common.util.*,
                 com.kylin.module.user.orm.*,
				 com.kylin.module.shop.orm.*,
				 com.kylin.module.shop.forms.*,
				 com.kylin.common.dict.orm.Dict,
                 com.kylin.common.paginate.DisplayPage
			     " %>
<jsp:directive.page import="java.lang.reflect.Method"/>
<%@ include file="/common/include/taglibs.jsp"%>
<table width="100%">
	<tr>
		<td width="300" valign="top">
			<%@ include file="../_deco/manageLeft.jsp"%>
		</td>
		<td align="center" valign="top">
<%
////////////////////右侧 内容区  /////////////////////// start
	Company currCom = (Company)session.getAttribute(Constants.CURR_LANG_COMPANY);
	Content obj = (Content)request.getAttribute(Constants.KEY_REQUEST_RESULT);
%>		
<form name="fo1" action="/module/shop/company/manageContent.do?CMD=update" method="post">
<input type="hidden" name="id" value="<%=obj.getId() %>"/>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="30" class="ms02">&nbsp;&nbsp;<bean:message key="company.72"/></td>
      </tr>
	   <tr>
              <td bgcolor="CDCDCD" height="1"></td>
        </tr>
    </table>
      <br>
<mytag:MyActionMsg />
      <table width="500" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><bean:message key="company.73"/>：</td>
          <td align="left">
          	<%
          	    if(Content.TYPE_BUY.equals(obj.getType()) )
          	        out.println("<bean:message key='company.49'/>");
          	    else if(Content.TYPE_SELL.equals(obj.getType()) )
          	        out.println("<bean:message key='company.48'/>");
          	%>
           </td>
        </tr>
        <tr>
          <td><bean:message key="company.50"/>：</td>
          <td align="left">
          <input type="text" class="input01" name="title" value="<%=JspHelper.checkNull(obj.getTitle())%>" size="40"/>
              <br><bean:message key="company.74"/>
          </td>
        </tr>
        <tr>
          <td><bean:message key="company.51"/>：</td>
          <td align="left">
               <textarea name="content" cols="38" 
                  rows="8" ><%=JspHelper.checkNull(obj.getContent())%></textarea>
                  
          </td>
        </tr>
        <tr>
          <td width="123"><bean:message key="base.63"/>：</td>
          <td width="377" align="left">
            <input type="text" value="<%=JspHelper.checkNull(obj.getQuantity())%>" class="input01" name="quantity" size="10"/>
              <bean:message key="company.75"/><mytag:select value="<%=(obj.getUnit()!=null)?obj.getUnit().getId()+"":"" %>" name="unit" dictName="计量单位"/>
          </td>
        </tr>
        <tr>
          <td><bean:message key="leads.06"/>：</td>
          <td align="left">
             <input type="text" value="<%=JspHelper.checkNull(obj.getPpackage())%>" class="input01" name="ppackage" size="26"/>
          </td>
        </tr>
        <tr>
          <td><bean:message key="leads.07"/>：</td>
          <td align="left">
             <input type="text" class="input01" name="price" value="<%=JspHelper.checkNull(obj.getPrice())%>" size="10"/>
            <bean:message key="company.76"/><mytag:select name="currency" value="<%=(obj.getCurrency()!=null)?obj.getCurrency().getId()+"":"" %>" dictName="币种"/>
          </td>
        </tr>
        <tr>
          <td><bean:message key="base.26"/>：</td>
          <td align="left">
               <input type="text" class="input01" name="contact" value="<%=JspHelper.checkNull(obj.getContact())%>" size="26"/>
          </td>
        </tr>
        <tr>
          <td><bean:message key="base.05"/>：</td>
          <td align="left">
             <input type="text" class="input01" name="phoneCountry" value="<%=JspHelper.checkNull(obj.getPhoneCountry())%>" size="10"/>
            -
            <input type="text" class="input01" name="phoneArea" value="<%=JspHelper.checkNull(obj.getPhoneArea())%>" size="10"/>
            -
            <input type="text" class="input01" name="phone" value="<%=JspHelper.checkNull(obj.getPhone())%>" size="10"/>
          </td>
        </tr>
        <tr>
          <td><bean:message key="base.06"/>：</td>
          <td align="left">
            <input type="text" class="input01" name="faxCountry" value="<%=JspHelper.checkNull(obj.getFaxCountry())%>" size="10"/>
            -
            <input type="text" class="input01" name="faxArea" value="<%=JspHelper.checkNull(obj.getFaxArea())%>" size="10"/>
            -
            <input type="text" class="input01" name="fax" value="<%=JspHelper.checkNull(obj.getFax())%>" size="10"/>
          </td>
        </tr>
        <tr>
          <td><bean:message key="base.07"/>：</td>
          <td align="left">
              <input type="text" class="input01" name="email" value="<%=JspHelper.checkNull(obj.getEmail())%>" size="26"/>
          </td>
        </tr>
        <tr>
          <td><bean:message key="company.52"/>：</td>
          <td align="left">

         <% 
            //构造 产品类别 下拉菜单
    	    List maincatproduct = MemObjFactory.getDict("产品类别",sessionLocale.toString());
            boolean disableSelectParent = true; 
            out.println(JspHelper.getCatProductSelect(maincatproduct,"catProductId",disableSelectParent));
            if(obj.getCatproduct()!=null)
              out.println("<script>document.fo1.catProductId.value='"+obj.getCatproduct().getId()+"'</script>");
        %>
              
              </td>
        </tr>
        <tr>
          <td><bean:message key="base.68"/>：</td>
          <td align="left">
			<mytag:CalendarInput value="<%=JspHelper.getShowDate(obj.getDuedate()) %>" name="duedate" id="duedate" imgId="duedate_img" />
          </td>
        </tr>
        <tr align="center">
          <td height="50" colspan="2">
             <input type="submit" name="Submit" value="<bean:message key="base.58"/>">
          </td>
        </tr>
      </table>
</form>      
<%

////////////////////右侧 内容区  /////////////////////// end
%>		
		</td>
	</tr>
</table>

